<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <title>仓库中的商品</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="author" content="quanqiuchi ued">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="stylesheet" type="text/css" href="../bootstrap-3.3.5/dist/css/bootstrap.min.css" media="screen, projection">
    <!--     <link rel="stylesheet" type="text/css" href="../bootstrap-3.3.5/dist/css/bootstrap-theme.min.css" media="screen, projection"> -->
    <link rel="stylesheet" type="text/css" href="../css/style.css" media="screen, projection">
</head>

<body>
    <!--右边栏 Start-->
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <div class="page-header fm-hd">
                    <h4><span style="font-size:12px;">当前位置：商品管理&nbsp;&gt;&nbsp;</span>仓库中的商品</h4>
                </div>
                <!-- 查询模块 Start -->
                <div class="fm-query">
                    <div class="frmbox">
                    	<form id="query_form">
                            <div class="querybox">
                             <!--    <div class="form-group">
                                    <label class="control-label">商品分类：</label>
                                    <div class="control-con">
                                        <select class="form-control">
                                            <option>全部类型</option>
                                        </select>
                                    </div>
                                </div> -->
                                <div class="form-group">
                                    <label class="control-label">商品名称：</label>
                                    <div class="control-con">
                                        <input type="text" class="form-control" name="goods_name">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label">商品编号：</label>
                                    <div class="control-con">
                                        <input type="text" class="form-control" name="goods_id" datatype="n0-19" errormsg="商品编号为19位以内数字" maxlength="19">
                                        <div class="Validform_checktip">商品编号格式不正确</div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label">当前价格：</label>
                                    <div class="control-con">
                                        <input type="text" class="form-control w130" name="beginpric" datatype="priceCompare"><span class="w40">到</span>
                                        <input type="text" class="form-control w130" name="endpric" datatype="priceCompare">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label">总销量：</label>
                                    <div class="control-con">
                                        <input type="text" class="form-control w130" name="beginnum" datatype="saleCompare"><span class="w40">到</span>
                                        <input type="text" class="form-control w130" name="endnum" datatype="saleCompare">
                                    </div>
                                </div>
                            </div>
                            <div class="querybtn">
                                <button class="btn btn-primary" id="search_btn" type="button">搜索</button>
                                <button class="btn btn-default" id="reset_btn" type="button">重置</button>
                            </div>
                       </form>
                    </div>
                </div>
                <!-- 查询模块 End -->
                <!-- 订单列表 Start -->
                <div class="order-list" id="goods_content_list">
                <script id="goods_list" type="text/html">
 					<h4>商品列表</h4>
                    <div class="dddbox">
                        <div class="ddd-hd">
                            <div class="fmbox box1">
                                <input type="checkbox" class="chk" value="" id="check_all_btn"/>当前页全选
                            </div>
                            <div class="fmbox box2">
                                <a href="javascript:void(0)" id="goods_on_shelve">
                                    <i class="glyphicon glyphicon-menu-right"></i>上架
                                </a>
                            </div>
                            <div class="fmbox box3">
                                <a href="javascript:void(0)" id="goods_remove" >
                                    <i class="glyphicon glyphicon-remove"></i>删除
                                 </a>
                            </div>
                            <div class="clearit"></div>
                        </div>
                        <div class="ddd-bd">
                            <!-- 1个商品 开始 -->
							{{each records as value goods_i}}
                            <div class="orderbox mb10">
                                <div class="order-hd">
                                    <ul class="ul-order">
                                        <li>
                                            <input type="checkbox" name="goods_check" class="chk" value="{{value.goods_id}}"/>商品编码：{{value.goods_id}} </li>
                                        <li>发布时间：{{value.add_time}}</li>
                                    </ul>
                                </div>
                                <div class="order-bd">
                                    <ul>
                                        <li>
                                            <div class="fm-goods-info">
                                                <div class="fm-goods-img">
                                                 	<img src="{{url}}/{{value.goods_main_photo_url}}">
                                                </div>
                                                <div class="fm-goods-con">
                                                    <p class="maintitle mt20">
														<!--商品名称-->
                                                        {{value.goods_name}}
                                                    </p>
                                                    <p class="subtitle">
														<!--商品副标题-->
                                                        {{value.goods_subhead}}
                                                    </p>
                                                </div>
                                            </div>
											{{if value.label_type == 2}}
                                            <div class="fm-column" style="width:20%;">
                                                <p>原价：<span>{{value.min_goods_price_old}}~{{value.max_goods_price_old}}</span></p>
												<p>售价：<span>{{value.goods_price}}~{{value.max_goods_price_before}}</span></p>
                                                <p><a href="javascript:void(0);" class="goods_yunfei_price_update_btn" data-goods-id="{{value.goods_id}}" data-yunfei-min-price="{{value.goods_current_price}}" data-yunfei-max-price="{{value.goods_price}}" data-no-yunfei-min-price="{{value.goods_current_price}}" data-no-yunfei-max-price="{{value.goods_price}}"><i class="iconfont color_1c75bf">&#xe60f;</i></a></p>
                                            </div>
											{{else}}
											 <div class="fm-column" style="width:20%;">
												<p>非会员价格：<span>{{value.goods_price}}</span></p>
                                                <p>会员价格：<span>{{value.goods_current_price}}</span></p>
                                                <p><a href="javascript:void(0);" class="goods_price_update_btn" data-goods-id="{{value.goods_id}}" data-current-price="{{value.goods_current_price}}" data-price="{{value.goods_price}}"><i class="iconfont color_1c75bf">&#xe60f;</i></a></p>
                                            </div>
											{{/if}}
                                            <div class="fm-column" style="width:15%;">
                                                <P>库存：<span>{{value.goods_inventory}}</span></P>
                                                <p><a href="javascript:void(0);" class="goods_inventory_update_btn" data-goods-id="{{value.goods_id}}" data-goods-inventory="{{value.goods_inventory}}"><i class="iconfont color_1c75bf">&#xe60f;</i></a></p>
                                            </div>
                                            <div class="fm-column" style="width:15%;">
                                                <p>销量：{{value.goods_salenum}}</p>
                                            </div>
                                            <div class="fm-column" style="width:18%;">
                                                <button class="btn btn-primary goods_single_edit_btn" data-id="{{value.goods_id}}">编辑商品</button>
                                                <button class="btn btn-default goods_single_on_shelve" data-id="{{value.goods_id}}">上架</button>
                                            </div>
                                            <div class="clearit"></div>
                                        </li>
                                    </ul>
                                </div>
                            </div>
							{{/each}}
                            <!-- 1个商品 结束 -->
                          
                        </div>
                    </div>
                    <!-- 订单列表 End -->
                    <!-- 分页 Start -->
                    <div class="pagebox" id="pageBox" style="display: none">
                        <div class="numbox">共<span class="blue3" id="records">{{totalCount}}</span>条记录</div>
                        <ul class="pagination fm_pageination" id="page">
                            <!--<li>
                                <a href="#">上一页</a>
                            </li>
                            <li class="active">
                                <a href="#">1</a>
                            </li>
                            <li>
                                <a href="#">2</a>
                            </li>
                           <!-- <li>
                                <a href="#">3</a>
                            </li>
                            <li>
                                <a href="#">4</a>
                            </li>
                            <li>
                                <a href="#">5</a>
                            </li>
                            <li>
                                <a href="#">下一页</a>
                            </li>-->
                        </ul>
                    </div>
                    <!-- 分页 End -->
					</script>
                </div>
            </div>
        </div>
        <!--右边栏 End-->
        <!-- 确定是否上架提示层 -->
       <!--  <div class="modal fade" id="shangjia" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                            &times;
                        </button>
                        <h4 class="modal-title" id="myModalLabel">
                    提示
                </h4>
                    </div>
                    <div class="modal-body">
                        <div class="tipinfo">确定上架商品?</div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">取消
                        </button>
                        <button type="button" class="btn btn-primary">
                            确定
                        </button>
                    </div>
                </div>
                /.modal-content
            </div>
            </div> -->
            <!-- /.modal -->
            
             <!-- 销售商品编辑修改价格弹窗  开始-->
        <div class="modal fade" id="editsale" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                            &times;
                        </button>
                        <h4 class="modal-title" id="myModalLabel">
                   			 修改价格
                		</h4>
                    </div>
                    <div class="modal-body">
                        <div class="editbox">
                            <form class="form-inline" role="form" id="form_price_Validform">
                                <div class="form-group">
                                    <label class="control-label" for="name">会员价：</label>
                                    <input type="text" class="form-control" id="price1" datatype="validPrice" nullmsg="会员价不能为空">
                                </div>
                                <div class="form-group">
                                    <label class="control-label" for="name">非会员价：</label>
                                    <input type="text" class="form-control" id="price2" datatype="validPrice" nullmsg="非会员价不能为空">
                                </div>
                            </form>
                        </div>
                        <div class="yz-tip"><span id="price_msgdemo"></div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal" id="update_goods_price_cancel">取消
                        </button>
                        <button type="button" class="btn btn-primary" id="update_goods_price_confirm">
                           	 确定
                        </button>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
        </div>
        <!-- 销售商品编辑修改价格弹窗  结束-->
        <!-- 服务商品编辑修改价格弹窗  开始-->
        <div class="modal fade" id="editservice" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
           
        </div>
        <!-- 服务商品编辑修改价格弹窗  结束-->
        <!-- 库存修改  开始-->
        <div class="modal fade" id="editstorage" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                            &times;
                        </button>
                        <h4 class="modal-title" id="myModalLabel">
                    		提示
                        </h4>
                    </div>
                    <div class="modal-body">
                        <form class="form-inline" role="form" id="form_inventory_Validform">
                                <div class="form-group">
                                    <label class="control-label" for="name">库存：</label>
                                    <input type="text" class="form-control" datatype="/^[1-9]\d{0,7}$/" nullmsg="库存不能为空" errormsg="库存范围为[1-99999999]的整数"  id="goods_inventory_text">
                                </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal" id="update_goods_inventory_cancel">取消
                        </button>
                        <button type="button" class="btn btn-primary" id="update_goods_inventory_confirm">
                            	确定
                        </button>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
        </div>
        <!-- 库存修改  结束-->
            
           <!--  <script data-main="../js/modules/index/index.js" src="../js/libs/require.js"></script> -->
            <div id="conform_task_id"></div>
            <script src="../js/modules/goods/storagegoods.js?v=1.2.1"></script>
</body>

</html>
